from django.urls import path
from . import views

app_name = 'user'

urlpatterns = [
    path('register/', views.register, name='register'),
    path('login/', views.login_view, name='login'),
    path('logout/', views.logout_view, name='logout'),
    path('profile/', views.profile, name='profile'),  # 当前用户的个人资料
    path('profile/<str:username>/', views.user_profile, name='user_profile'),  # 其他用户的个人资料
]